package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  产品信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_product")
@ApiModel("产品信息")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    @ApiModelProperty("产品id")
    private Integer productId;
    @ApiModelProperty("产品系列")
    private String productSeries;
    @ApiModelProperty("产品型号")
    private String productModel;
    @ApiModelProperty("产品类别")
    private String productType;
    @ApiModelProperty("产品批次")
    private String productBatch;
    @ApiModelProperty("产品单位")
    private String productUnit;
    @ApiModelProperty("产品单价")
    private Integer productPrices;
    @ApiModelProperty("产品备注")
    private String productRemarks;
    @ApiModelProperty("中羽URL")
    private String productUrl;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;


}
